import { Component, Input, OnInit } from '@angular/core';
import { PageModalService } from 'src/app/shared/service/page-modal-service';

@Component({
  selector: 'app-transverse-list',
  templateUrl: './transverse-list.component.html',
  styleUrls: ['./transverse-list.component.scss'],
})
export class TransverseListComponent implements OnInit {
  @Input() tagData: any;
  hiddenArrow: any;
  constructor(private pageModalService: PageModalService) { }
  ngOnInit() {
    const listData = this.tagData.data;
    if (listData !== undefined && listData.length > 0) {
      console.log('xxxxxx= ', listData);
      if (listData[0] && listData[0].link.params && listData[0].link.params.hiddenArrow) {
        this.hiddenArrow = listData[0].link.params.hiddenArrow;
      }
    }
  }
  go(obj) {
    this.pageModalService.openPage(obj);
  }

}
